<%@ tag language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fns" uri="/WEB-INF/tlds/fns.tld" %>

<%@ attribute name="key" type="java.lang.String" description="选中的菜单"%>

<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<div class="card-header card-header-tabs" data-background-color="dark">
    <div class="nav-tabs-navigation">
        <div class="nav-tabs-wrapper">
            <span class="nav-tabs-title">菜单:</span>
            <ul id="navTabs" class="nav nav-tabs">
                <li class="${key eq 'sysDynamic'?'active':''}"><a href="${ctx}/adminConsole/sysDynamic/pageList">系统动态</a></li>
                <li class="${key eq 'userList'?'active':''}"><a href="${ctx}/adminConsole/system/userList">用户管理</a></li>
                <c:if test="${fns:isAdmin()}">
                    <li class="${key eq 'sysExList'?'active':''}"><a href="${ctx}/adminConsole/sysEx/pageList">错误日志</a></li>
                    <li class="${key eq 'noticeList'?'active':''}"><a href="${ctx}/adminConsole/system/noticeList">公告管理</a></li>
                    <li class="${key eq 'eventList'?'active':''}"><a href="${ctx}/adminConsole/system/eventList">事件列表</a></li>
                    <li class="${key eq 'indexList'?'active':''}"><a href="${ctx}/adminConsole/system/indexList">索引管理</a></li>
                </c:if>
                <c:if test="${fns:isSuperAdmin()}">
                    <li class="${key eq 'adminConsole'?'active':''}"><a href="${ctx}/adminConsole/superAdmin/console">系统设置</a></li>
                    <li class="${key eq 'apiAppList'?'active':''}"><a href="${ctx}/adminConsole/superAdmin/apiAppList">API管理</a></li>
                    <li class=""><a target="_blank" href="${ctx}/admin.html">Solr后台</a></li>
                </c:if>
            </ul>
        </div>
    </div>
</div>
